function fibonacci(n) {
    return n<=2 ? 1 : fibonacci(n-1) + fibonacci(n-2)  //递归调用
}

this.onmessage = function (event) {
    var result = fibonacci(event.data)
    postMessage(result)
}